# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html

import json
from HouseData.items import lianjia_v3Item
# from .sql import Sql

class HousedataPipeline(object):

    def process_item(self, item, spider):
        # print('V3 PIP')
        data = dict(item)
        file_path='/Users/super/PycharmProjects/ShenzhenRealestate/HouseData/House-node.json'
        with open(file_path,'a+',encoding='utf-8') as f:
            f.write(json.dumps(data,indent=4,ensure_ascii=False))


